-- This script was edited and cleaned up by andyzweb
-- Submitted to svn by Ashly

print("Main.lua script initialized!")

--This function is for on player connect
--it is called in the clientconnected.cs packet handler

function OnPlayerConnect(client)
   client:Print("Welcome, " .. client.Character.Name .. ". Date is " .. os.date())
end

--this is the function for player disconnect
--it is called in the zone engine server.cs

function OnClientDisconnect(client)
   print("User " .. client.Character.Name .. " has disconnected")
end

-- experimental onTrade (rightclick on mob)
function OnTrade(playfield, character, targ)
print(targ.Name.." said something to "..character.Name)
SendVicinityChat(targ,"Leave me alone, i have no functions implemented.");
end